﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FooFun.Faq.Bll;
using FooFun.DataElements.Dtos;
using FAQFrameworks;

namespace FooFun.Web.Controls
{
    public class DutiesOfUser : DataElementControl
    {
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            Guid userId = FAQContext.Current.AccountId;

            RoleSetManager roleSetManager = new RoleSetManager();

            IDataElement roleSetDE = roleSetManager.ListRoleSetByAccountId(userId);

            this.DataElement = roleSetDE;
        }
    }
}
